package com.yuanrui.subject.domain.convert;

import com.yuanrui.subject.domain.entity.SubjectLabelBo;
import com.yuanrui.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目标签表(SubjectLabel)转换器
 */
@Mapper
public interface SubjectLabelConvert {
    SubjectLabelConvert INSTANCE = Mappers.getMapper(SubjectLabelConvert.class);

    //将SubjectLabelBo转换为SubjectLabel
    SubjectLabel convertBoToLabel(SubjectLabelBo subjectLabelBo);

    //将SubjectLabel转换为SubjectLabelBo
    SubjectLabelBo convertLabelToBo(SubjectLabel subjectLabel);

    //将SubjectLabelBo列表转换为SubjectLabel列表
    List<SubjectLabel> convertBoToLabel(List<SubjectLabelBo> labelList);

    //将SubjectLabel列表转换为SubjectLabelBo列表
    List<SubjectLabelBo> convertLabelToBo(List<SubjectLabel> labelList);
}
